package com.xyxeshang.es.music.backend.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;
import java.util.List;

/**
 * @author xyx-Eshang
 */
@JsonIgnoreProperties("handler")
public class Playlist {
	private Integer playlistId;
	private String playlistName;
	private Date playlistCreateTime;
	private Date playlistUpdateTime;
	private String playlistIntroduction;
	private String playlistPictureUrl;
	private String userOpenId;

	private User user;
	private List<Song> songList;
	private Integer playlistLikeCount;
	private Integer playlistCommentCount;
	private List<PlaylistComment> playlistCommentList;
	private List<PlaylistLabel> playlistLabelList;

	@Override
	public String toString() {
		return "Playlist{" +
				"playlistId=" + playlistId +
				", playlistName='" + playlistName + '\'' +
				", playlistCreateTime=" + playlistCreateTime +
				", playlistUpdateTime=" + playlistUpdateTime +
				", playlistIntroduction='" + playlistIntroduction + '\'' +
				", playlistPictureUrl='" + playlistPictureUrl + '\'' +
				", userOpenId='" + userOpenId + '\'' +
				", user=" + user +
				", songList=" + songList +
				'}';
	}

	public Integer getPlaylistId() {
		return playlistId;
	}

	public Playlist setPlaylistId(Integer playlistId) {
		this.playlistId = playlistId;
		return this;
	}

	public String getPlaylistName() {
		return playlistName;
	}

	public Playlist setPlaylistName(String playlistName) {
		this.playlistName = playlistName;
		return this;
	}

	public Date getPlaylistCreateTime() {
		return playlistCreateTime;
	}

	public Playlist setPlaylistCreateTime(Date playlistCreateTime) {
		this.playlistCreateTime = playlistCreateTime;
		return this;
	}

	public Date getPlaylistUpdateTime() {
		return playlistUpdateTime;
	}

	public Playlist setPlaylistUpdateTime(Date playlistUpdateTime) {
		this.playlistUpdateTime = playlistUpdateTime;
		return this;
	}

	public String getPlaylistIntroduction() {
		return playlistIntroduction;
	}

	public Playlist setPlaylistIntroduction(String playlistIntroduction) {
		this.playlistIntroduction = playlistIntroduction;
		return this;
	}

	public String getPlaylistPictureUrl() {
		return playlistPictureUrl;
	}

	public Playlist setPlaylistPictureUrl(String playlistPictureUrl) {
		this.playlistPictureUrl = playlistPictureUrl;
		return this;
	}

	public String getUserOpenId() {
		return userOpenId;
	}

	public Playlist setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
		return this;
	}

	public User getUser() {
		return user;
	}

	public Playlist setUser(User user) {
		this.user = user;
		return this;
	}

	public List<Song> getSongList() {
		return songList;
	}

	public Playlist setSongList(List<Song> songList) {
		this.songList = songList;
		return this;
	}
}
